package threaddemo;

public class demo2 {

    public static void main(String[] args) throws InterruptedException {//main方法中为什么可以丢出或者try catch
        Thread t=new Thread(new MyRunnable());
        t.start();
        while (true){
            System.out.println("hello，main");
            Thread.sleep(1000);
        }
    }
}
